import request from '@/plugins/request';
var pre = '/active';
if (process.env.NODE_ENV !== "development") {
    pre = '/api/sa/epid-prevention' + pre;
}

// 查询活动报备信息
export function getPageForActivity(data) {
    return request({
      url: `${pre}/page`,
      method: "post",
      data,
    });
  }

// 保存活动报备信息
export function saveActivityReport (data) {
    return request({
        url: `${pre}/save`,
        method: 'post',
        data
    });
}
// 查询活动报备详情
export function queryActivityDetail (data) {
    return request({
        url: `${pre}/detail${data}`,
        method: 'get',
    });
}
// // 删除活动报备信息
export function deleteActivity (data) {
    return request({
        url: `${pre}/del`,
        method: 'post',
        data
    });
}
